<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>


<body>

<input type="text" class="form-control" name="aimg" id="testimg"/>
<input type="file" multiple class="projectfile" accept="image/*" name="img" id="userImg">

</body>

   <script>
       $(function(){
           uploadImg();
       })


   </script>
</html>